<?php

include "sendquery_db.php";

$room = $_GET['remove_room'];

$db = dbservice::getInstance();

$result = $db -> sendquery("select count(username) as count from participant where roomnum = $room");

if ($result) {
	foreach ($result as $output) {

		if ($output['count'] == 0) {

			$result = $db -> sendquery("delete from sendserver where roomnum=$room");
			echo 'remove room';
		}else{
			
			echo 'not remove room';
			
		}

	}

}
?>
